package com.sgb.knowledgeshare.entity;

import android.os.Build;

import androidx.annotation.RequiresApi;

import java.io.Serializable;
import java.util.Objects;

/**
 * Created by：冯齐 on 2020/10/19 16:21
 * Description：
 */
public class TabelListEntity implements Serializable {
    //标签名称
    private String labelName;
    //标签no
    private String labelNo;

    private boolean isSelected;

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getLabelNo() {
        return labelNo;
    }

    public void setLabelNo(String labelNo) {
        this.labelNo = labelNo;
    }

    @Override
    public String toString() {
        return "TabelListEntity{" +
                "labelName='" + labelName + '\'' +
                ", labelNo='" + labelNo + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TabelListEntity that = (TabelListEntity) o;
        return labelNo.equals(that.labelNo);
    }

    @RequiresApi(api = Build.VERSION_CODES.KITKAT)
    @Override
    public int hashCode() {
        return Objects.hash(labelNo);
    }
}
